package com.shop.admin.service;

import com.shop.Result.LdbzResult;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.InputStream;

@Service
public interface AdminPicService {

    LdbzResult uploadFile(MultipartFile file,
                          HttpServletRequest request, RedirectAttributes redirectAttributes) throws IOException;
}
